1 //------------------------------------------------------------------------
3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // Defines a factory for CVersion objects
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
14 //------------------------------------------------------------------------
20 This is where our Avalon policy is implemented. Given a requested version
21 of Avalon, we need to decide which version of Avalon we are actually going
24 The currently implemented policy is as follows:
28 if the requested version is available, use it
29 else return the latest version
33 always run the latest version
35 Note that this is just the Avalon version; the CLR version will be exactly
36 specified by PresentationHostDLL.dll
40 #include "Precompiled.hxx"
41 #include "..\shared\StringMap.hxx"
46 static int GetCount();
47 static CVersion
* GetVersion(__in_ecount(1) LPCWSTR pwzRequestedVersion
, BOOL bDefaultToLatest
= TRUE
);
48 static CVersion
* GetLatestVersion();
51 static HRESULT
EnsureVersionList();
54 static CStringMap
<CVersion
*>* m_pVersions
;
55 static CVersion
* m_pLatestVersion
;